Class RandomBot

java.lang.Object
edu.uky.ai.tic.ai.RandomBot
All Implemented Interfaces:
Bot

public class RandomBot
extends java.lang.Object
implements Bot
A random Tic Tac Toe bot simply chooses its next move at random from all the available next moves.
Author:
Stephen G. Ware
  • Constructor Summary

    Constructors 
    Constructor Description
    RandomBot​(long seed)
    Constructs a new random bot with a given random number generator seed.
  • Method Summary

    Modifier and Type Method Description
    Decision chooseMove​(State state)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RandomBot

      public RandomBot​(long seed)
      Constructs a new random bot with a given random number generator seed.
      Parameters:
      seed - the random number generator seed
  • Method Details